import { defineStore } from 'pinia'
import { THEME_LIGHT } from '@/constants/index.js'

export const useThemeStore = defineStore('useThemeStore', {
  state: () => ({
    theme: THEME_LIGHT
  }),
  actions: {
    setTheme(theme) {
      this.theme = theme
    }
  },
  persist: true
})
